home *** CD-ROM | disk | FTP | other *** search
- Path: seagoon.newcastle.edu.au!usenet
- From: mazz@faceng.newcastle.edu.au (Richard Mazzaferri)
- Newsgroups: comp.lang.c++
- Subject: Re: C++ vs Delphi 2.0
- Date: Fri, 29 Mar 1996 02:19:51 GMT
- Organization: Newcastle University
- Message-ID: <315b4751.80328396@news.newcastle.edu.au>
- References: <825673272.2083@axiombc.demon.co.uk> <4ims71$oh3@hawk.pix.za> <3152304b.5915048@news.newcastle.edu.au> <4j2u9o$s0n@nntp.interaccess.com> <4j9dtu$sh8@tulsa.lgc.com>
- NNTP-Posting-Host: tesla.newcastle.edu.au
-
- mrovak@lgc.com (Mike.Rovak) wrote:
-
- > In article <4j2u9o$s0n@nntp.interaccess.com>,
- > Thaddeus L. Olczyk <Polczyk@interaccess.com> wrote:
- > >mazz@faceng.newcastle.edu.au (Richard Mazzaferri) wrote:
-
- > >>The biggest omissions are multiple inheritance (which can generally be
- > >>faked with a bit of work) and templates (no workaround :-(. Some of the
- > >
- > >Many times a lot of work or virtually impossible.
- >
- > Nothing is impossible if a genuine need exists (Mike's Law). :-)
- > That's where creativity and engineering skills come in.
-
- I have to agree with Thaddeus - occasionally there appear to be things that
- *fundamentally* cannot be achieved without multiple inheritance.
- Fortunately, these are *much* rarer than people generally claim. I have
- only one example. I can see no way to port my C++ debugging/logging
- library to Delphi because it requires multiple inheritance - the debugging
- output has to go to an output stream which depends on the type of the most
- derived class of an object, even during construction when the outermost
- class has not been created yet. This is solved in C++ by using virtual
- inheritance to ensure that the Debug classes are constructed first, and
- once only. Someone else in a Delphi group claimed that MI was never
- *required*, but so far has declined to show me how to solve my problem :-)
- Perhaps even this is solvable though.
-
- Have fun,
- Mazz.
- mazz@faceng.newcastle.edu.au
-